123456/V5 2324/diverse.php

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <?php $docenten = array("Informatica" => "Grimme", "Engels" => "Zuidema", "Nederlands" => "Beusekom"); asort($docenten); foreach($docenten as $pipo => $mamalou){ echo "<div>Het vak $pipo wordt gegeven door $mamalou</div>"; } ?> </body> </html>

Resultaat

Made by Thijs Aarnoudse